Adwaita: Fix color of focus outline on colorswatch
authorDaniel Boles <dboles@src.gnome.org>
Sat, 16 Sep 2017 16:02:24 +0000 (17:02 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Sat, 16 Sep 2017 16:02:48 +0000 (17:02 +0100)
commitf714500b8de913669da006e8b933a2ffe4e483e6
treeba08c50168105c43fd3fae188c46c4a47e9a3d51
parent7c809cfb73a91377f9b9e1909cb3c9c31298a4b0
Adwaita: Fix color of focus outline on colorswatch

The focus outline disappeared as the colour of the swatch got close to
the normal focus outline colour, which is alpha(currentColor, 0.3).

Fix by making the outline an alpha’d version of the tick colour, but
more opaque than normal outlines. 0.6 seems good enough; feel free to
improve it, but at least this ensures the outline can’t vanish anymore.

HighContrast achieves this already because it applies the color property
to the main node, not the overlay. Doing that means the outline is fully
opaque, which is fine for HC obviously but was excessive for Adwaita.

https://bugzilla.gnome.org/show_bug.cgi?id=787757
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css